package com.itany.nmms.service;

import com.itany.mvc.util.CommonsMultipartFile;
import com.itany.nmms.exception.FileUploadErrorException;
import com.itany.nmms.exception.ProductExistException;
import com.itany.nmms.exception.RequestParameterErrorException;

import javax.servlet.http.HttpSession;
import java.util.List;

/**
 * @author 石小俊
 * @date 2023年07月25日 15:00
 */
public interface ProductService {

    /**
     * 添加商品信息
     * @param name
     * @param price
     * @param files
     * @param typeId
     */
    void addProduct(String name, String price, List<CommonsMultipartFile> files, String typeId, HttpSession session) throws RequestParameterErrorException, ProductExistException, FileUploadErrorException;

}
